﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebFormActivos.aspx.cs" Inherits="Sitio.WebFormActivos" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Activos</title>
    <link href="estilo.css" rel="Stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 74%;
            margin-left: 80px;
            margin-right: 99px;
        }
        .style2
        {
            width: 182px;
        }
        .style3
        {
            width: 74%;
            margin-left: 80px;
        }
        .style5
        {
            width: 174px;
        }
        .style6
        {
            width: 474px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="height: 1655px">
    
        <br />
        <br />
    
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    
        <asp:Label ID="Label1" runat="server" 
            style="font-size: large; font-weight: 700" Text="Registrar Activos"></asp:Label>
        <br />
        <br />
        <table class="style1">
            <tr>
                <td class="style2">
                    <asp:Label ID="Label2" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Descripcion:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:TextBox ID="txbDescripcion" runat="server"></asp:TextBox>
&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txbDescripcion" ErrorMessage="RequiredFieldValidator" 
                        ValidationGroup="Validar">Ingrese Descripcion</asp:RequiredFieldValidator>
                &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label3" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Propiedad:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:DropDownList ID="DropDownList1" runat="server" Height="22px" 
                        onselectedindexchanged="DropDownList1_SelectedIndexChanged" Width="230px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label4" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Fecha de Compra:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:Calendar ID="CalendarFechaCompra" runat="server" BackColor="White" 
                        BorderColor="Black" DayNameFormat="Shortest" Font-Names="Times New Roman" 
                        Font-Size="10pt" ForeColor="Black" Height="112px" NextPrevFormat="FullMonth" 
                        TitleFormat="Month" Width="252px">
                        <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" 
                            ForeColor="#333333" Height="10pt" />
                        <DayStyle Width="14%" />
                        <NextPrevStyle Font-Size="8pt" ForeColor="White" />
                        <OtherMonthDayStyle ForeColor="#999999" />
                        <SelectedDayStyle BackColor="#CC3333" ForeColor="White" />
                        <SelectorStyle BackColor="#CCCCCC" Font-Bold="True" Font-Names="Verdana" 
                            Font-Size="8pt" ForeColor="#333333" Width="1%" />
                        <TitleStyle BackColor="Black" Font-Bold="True" Font-Size="13pt" 
                            ForeColor="White" Height="14pt" />
                        <TodayDayStyle BackColor="#CCCC99" />
                    </asp:Calendar>
                &nbsp;&nbsp;&nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label7" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Estado:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:DropDownList ID="DropDownList3" runat="server" Height="22px" 
                        onselectedindexchanged="DropDownList1_SelectedIndexChanged" Width="230px">
                    </asp:DropDownList>
                &nbsp;
                    </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label8" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Marca:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:TextBox ID="txbMarca" runat="server"></asp:TextBox>
&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="txbMarca" ErrorMessage="RequiredFieldValidator" 
                        ValidationGroup="Validar">Ingrese Marca</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label9" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Modelo:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:TextBox ID="txbModelo" runat="server"></asp:TextBox>
&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                        ControlToValidate="txbModelo" ErrorMessage="RequiredFieldValidator" 
                        ValidationGroup="Validar">Ingrese Modelo</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label10" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Forma:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:TextBox ID="txbForma" runat="server"></asp:TextBox>
&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                        ControlToValidate="txbForma" ErrorMessage="RequiredFieldValidator" 
                        ValidationGroup="Validar">Ingrese Forma</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label11" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Serial:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:TextBox ID="txbSerial" runat="server"></asp:TextBox>
&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                        ControlToValidate="txbSerial" ErrorMessage="RequiredFieldValidator" 
                        ValidationGroup="Validar">Ingrese Serial</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label12" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Color:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:TextBox ID="txbColor" runat="server"></asp:TextBox>
&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                        ControlToValidate="txbColor" ErrorMessage="RequiredFieldValidator" 
                        ValidationGroup="Validar">Ingrese Color</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label13" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Capacidad:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:TextBox ID="txbCapacidad" runat="server"></asp:TextBox>
&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                        ControlToValidate="txbCapacidad" ErrorMessage="RequiredFieldValidator" 
                        ValidationGroup="Validar">Ingrese Capacidad</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label14" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Material:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:TextBox ID="txbMaterial" runat="server"></asp:TextBox>
&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                        ControlToValidate="txbMaterial" ErrorMessage="RequiredFieldValidator" 
                        ValidationGroup="Validar">Ingrese Material</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label15" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Alto:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:TextBox ID="txbAlto" runat="server"></asp:TextBox>
&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                        ControlToValidate="txbAlto" ErrorMessage="RequiredFieldValidator" 
                        ValidationGroup="Validar">Ingrese Altura</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label16" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Largo:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:TextBox ID="txbLargo" runat="server"></asp:TextBox>
&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                        ControlToValidate="txbLargo" ErrorMessage="RequiredFieldValidator" 
                        ValidationGroup="Validar">Ingrese Longitud</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label17" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Ancho:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:TextBox ID="txbAncho" runat="server"></asp:TextBox>
&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" 
                        ControlToValidate="txbAncho" ErrorMessage="RequiredFieldValidator" 
                        ValidationGroup="Validar">Ingrese Anchura</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label18" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Diametro:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:TextBox ID="txbDiametro" runat="server" MaxLength="5"></asp:TextBox>
&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" 
                        ControlToValidate="txbDiametro" ErrorMessage="RequiredFieldValidator" 
                        ValidationGroup="Validar">Ingrese Diametro</asp:RequiredFieldValidator>
                &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator1" 
                        runat="server" ControlToValidate="txbDiametro" 
                        ErrorMessage="RegularExpressionValidator" 
                        ValidationExpression="[0-9]{1,9}(\.[0-9]{0,2})?$" ValidationGroup="Validar">Ingrese solo numeros</asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label19" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Numero Divisiones:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:TextBox ID="txbNumeroDivisiones" runat="server" MaxLength="5"></asp:TextBox>
&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" 
                        ControlToValidate="txbNumeroDivisiones" ErrorMessage="RequiredFieldValidator" 
                        ValidationGroup="Validar">Ingrese Numero Divisiones</asp:RequiredFieldValidator>
                    <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                        ControlToValidate="txbNumeroDivisiones" 
                        ErrorMessage="RegularExpressionValidator" 
                        ValidationExpression="[0-9]{1,9}(\.[0-9]{0,2})?$" ValidationGroup="Validar">Ingrese solo numeros</asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label20" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Tipo Asignacion"></asp:Label>
                </td>
                <td class="style6">
                    <asp:DropDownList ID="DropDownList2" runat="server" Height="22px" 
                        onselectedindexchanged="DropDownList1_SelectedIndexChanged" Width="230px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label21" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Tipo de Alta:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:DropDownList ID="DropDownList4" runat="server" Height="22px" 
                        onselectedindexchanged="DropDownList1_SelectedIndexChanged" Width="230px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label23" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Numero Comprobante:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:TextBox ID="txbNumeroComprobante" runat="server" MaxLength="6"></asp:TextBox>
&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" 
                        ControlToValidate="txbNumeroComprobante" ErrorMessage="RequiredFieldValidator" 
                        ValidationGroup="Validar">Ingrese Numero Comprobante</asp:RequiredFieldValidator>
                    <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                        ControlToValidate="txbNumeroComprobante" 
                        ErrorMessage="RegularExpressionValidator" 
                        ValidationExpression="[0-9]{1,9}(\.[0-9]{0,2})?$" ValidationGroup="Validar">Ingrese solo numeros</asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label24" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Reportado al Seguro:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:DropDownList ID="DropDownList5" runat="server" Height="22px" 
                        onselectedindexchanged="DropDownList1_SelectedIndexChanged" Width="230px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label27" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Valor:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:TextBox ID="txbValor" runat="server"></asp:TextBox>
&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server" 
                        ControlToValidate="txbValor" ErrorMessage="RequiredFieldValidator" 
                        ValidationGroup="Validar">Ingrese Valor Activo</asp:RequiredFieldValidator>
                &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator4" 
                        runat="server" ControlToValidate="txbValor" 
                        ErrorMessage="RegularExpressionValidator" 
                        ValidationExpression="[0-9]{1,9}(\.[0-9]{0,2})?$" ValidationGroup="Validar">Ingrese solo numeros</asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label28" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Proveedor:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:DropDownList ID="ddlProveedor" runat="server" 
                        onselectedindexchanged="ddlProveedor_SelectedIndexChanged" Width="232px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label30" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Personal:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:DropDownList ID="ddlPersonal" runat="server" Height="24px" Width="231px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label31" runat="server" 
                        style="font-size: medium; font-weight: 700" Text="Familia:"></asp:Label>
                </td>
                <td class="style6">
                    <asp:DropDownList ID="ddlFamilia" runat="server" Height="22px" Width="231px">
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <br />
&nbsp;&nbsp;&nbsp;
        <table class="style3">
            <tr>
                <td class="style5">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btGuardar" runat="server" Height="26px" 
                        style="text-align: center; font-weight: 700" Text="GUARDAR" Width="109px" 
                        onclick="btGuardar_Click" ValidationGroup="Validar" />
                </td>
                <td class="style5">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btNuevo" runat="server" Height="26px" 
                        style="text-align: center; font-weight: 700" Text="NUEVO" Width="109px" 
                        onclick="btNuevo_Click" />
                </td>
                <td>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
                    &nbsp;
                    <asp:Button ID="btRegresar" runat="server" 
                        style="text-align: center; font-weight: 700" Text="REGRESAR" 
                        onclick="btRegresar_Click" />
                </td>
            </tr>
        </table>
        <br />
        <asp:GridView ID="grdActivos" runat="server"  
            EnableModelValidation="True" ForeColor="Black" GridLines="Horizontal" 
            AutoGenerateColumns="False" 
            onselectedindexchanged="grdActivos_SelectedIndexChanged" BackColor="White" 
            BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
            style="margin-top: 26px">
            <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
            <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
            <EmptyDataTemplate>
                    No se encontraron resultados para la busqueda.
                </EmptyDataTemplate>
                <Columns>
                <asp:BoundField DataField="ICODIGOBARRAS1" HeaderText="Codigo de Barras"/>
                <asp:BoundField DataField="SDESCIPCION_DSC1" HeaderText="Descripcion"/>
                <asp:BoundField DataField="SPROPIEDAD1" HeaderText="Propiedad" />
                <asp:BoundField DataField="DTFECHACOMPRA_DT1" HeaderText="Fecha de Compra" />
                <asp:BoundField DataField="DTFECHADEALTA_DT1" HeaderText="Fecha de Alta" />
                <asp:BoundField DataField="IVIDAUTIL1" HeaderText="Vida Util" />
                <asp:BoundField DataField="SESTADO1" HeaderText="Estado" />
                <asp:BoundField DataField="SMARCA1" HeaderText="Marca" />
                <asp:BoundField DataField="SMODELO1" HeaderText="Modelo" />
                <asp:BoundField DataField="SFORMA1" HeaderText="Forma" />
                <asp:BoundField DataField="SSERIAL1" HeaderText="Serial" />
                <asp:BoundField DataField="SCOLOR1" HeaderText="Color" />
                <asp:BoundField DataField="SCAPACIDAD1" HeaderText="Capacidad" />
                <asp:BoundField DataField="SMATERIAL1" HeaderText="Material" />
                <asp:BoundField DataField="SALTO1" HeaderText="Altura" />
                <asp:BoundField DataField="SLARGO1" HeaderText="Longitud" />
                <asp:BoundField DataField="SANCHO1" HeaderText="Ancho" />
                <asp:BoundField DataField="IDIAMETRO1" HeaderText="Diametro" />
                <asp:BoundField DataField="INUMERODEDIVICIONES1" HeaderText="Numero de Divisiones" />
                <asp:BoundField DataField="STIPODEASIGANCION1" HeaderText="Tipo Asignacion" />
                <asp:BoundField DataField="STIPODEALTA1" HeaderText="Tipo de Alta" />
                <asp:BoundField DataField="NUMERODECOMPROVANTE1" HeaderText="Numero de Comprobante" />
                <asp:BoundField DataField="REPORTADOALSEGURO1" HeaderText="Reportado Al Seguro" />
                <asp:BoundField DataField="IVALOR1" HeaderText="Valor" />
             
                </Columns>
        </asp:GridView>
    
    </div>
    </form>
</body>
</html>
